package Tools;

import org.apache.log4j.Logger;

public class Log {
	public static Logger log = Logger.getLogger(Log.class);

	/**
	 * 程序日志方法
	 * 
	 * @param log
	 */
	public static void print(Object msg) {
//		SimpleDateFormat sdf = new SimpleDateFormat("[yyyy-MM-dd HH:mm:ss]");
//		log.debug(sdf.format(new Date()) + " " + msg);
		log.debug(msg);
		if(msg instanceof Exception){
			((Exception)msg).printStackTrace();
		}
	}
}
